﻿namespace TechMadeira.Data.Classes
{
    public class Client : Semantic, IClient
    {
        private string mName;
        private string mNIF;

        public string Name
        {
            get { return mName; }
            set { mName = value; Notify(); } 
        }
        public string NIF
        {
            get { return mNIF; }
            set { mNIF = value; Notify(); } 
        }

        public override string ToString()
        {
            return string.IsNullOrEmpty( Name ) ? "Client" : string.Format( "{0} ({1})", Name, NIF );
        }
    }
}